From: Matthieu Gallien Date: Fri, 4 Apr 2025 09:09:38 +0000 (+0200) Subject: if we are going to need modified permissions: always change X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2^2~48^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=69599b010fd8ef3e1e5dc418d15961275f9c702e;p=nextcloud-desktop.git if we are going to need modified permissions: always change we might need to change the permissions, so do it instead of trying to be smart Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/filesystem.cpp b/src/libsync/filesystem.cpp index 580562acc..ecf950fe3 100644 --- a/src/libsync/filesystem.cpp +++ b/src/libsync/filesystem.cpp @@ -535,8 +535,8 @@ FileSystem::FilePermissionsRestore::FilePermissionsRestore(const QString &path, _initialPermissions = FileSystem::isFolderReadOnly(stdStrPath) ? OCC::FileSystem::FolderPermissions::ReadOnly : OCC::FileSystem::FolderPermissions::ReadWrite; if (_initialPermissions != temporaryPermissions) { _rollbackNeeded = true; - FileSystem::setFolderPermissions(_path, temporaryPermissions); } + FileSystem::setFolderPermissions(_path, temporaryPermissions); } catch (const std::filesystem::filesystem_error &e) {